package marksys.free.com.marksys.nettool;

/**
 * Created by zlinsun on 2018/7/31.
 * hah
 */
public class ApiResult <T>{
    public int code;
    public T data;
    public String msg;
    @Override
    public String toString() {
        return "ApiResult{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", data=" + data +
                '}';
    }

    public boolean isSuccessful() {
        return code==0;
    }

    public String errorMsg() {
        return msg;
    }
}
